//==========================================================================
// Copyright (c) 2000-2008,  Elastos, Inc.  All Rights Reserved.
//==========================================================================

#ifndef __ELASTOS_BSPCFG_H__
#define __ELASTOS_BSPCFG_H__

#ifdef _x86

#define COMPORT_DEBUG   ComPort1
#if defined(_TEST_TYPE) /* Test for x86 */
#define COMPORT_PRINT   ComPort2
#else
#define COMPORT_PRINT   ComPort1
#endif
#elif defined(_arm)

#ifdef _newland

#define _arm720

#define COMPORT_DEBUG   ComPort1
#define COMPORT_PRINT   ComPort1
#elif defined(_sharp)

#define _arm920

#define COMPORT_DEBUG   ComPort2
#define COMPORT_PRINT   ComPort2
#elif defined(_bulverde)

#define _xscale

#define COMPORT_DEBUG   ComPort2
#define COMPORT_PRINT   ComPort2
#elif defined(_techfaith)

#define _xscale

#define COMPORT_DEBUG   ComPort2
#define COMPORT_PRINT   ComPort2
#elif defined(_gingko)

#define _xscale

#define COMPORT_DEBUG   ComPort3
#define COMPORT_PRINT   ComPort3
#elif defined(_paladin)

#define _xscale

#define COMPORT_DEBUG   ComPort2
#define COMPORT_PRINT   ComPort2
#elif defined(_monahans)

#define _xscale

#define COMPORT_DEBUG   ComPort1
#define COMPORT_PRINT   ComPort1
#elif defined(_emuboard)
#define _arm920
#define COMPORT_DEBUG   ComPort1
#define COMPORT_PRINT   ComPort1

#elif defined(_c28)

#define _xscale

#define COMPORT_DEBUG   ComPort3
#define COMPORT_PRINT   ComPort3

#elif defined(_neptune)

#define _arm926
#define COMPORT_DEBUG   ComPort1
#define COMPORT_PRINT   ComPort1

#elif defined(_t8)

#define _arm920

#define COMPORT_DEBUG   ComPort1
#define COMPORT_PRINT   ComPort1

#elif defined(_apdk6400)    //_s3c6410

#define _s3c6410
#define _arm1176jzfs
#define _arm11

#define COMPORT_DEBUG   ComPort1
#define COMPORT_PRINT   ComPort1

#else
#error Unknown board
#endif
#elif defined(_mips)

#define COMPORT_DEBUG   ComPort1
#define COMPORT_PRINT   ComPort1

#endif

#endif //__ELASTOS_BSPCFG_H__
